<template>
	<view class="footer">
		<view class="btn" @click="leftClick">
			{{leftName}}
		</view>
		<view class="btn" @click="rightClick">
			{{rightName}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:{
			leftName:String,
			rightName:String,
		},
		onLoad() {
	
		},
		methods: {
			leftClick(){
				this.$emit('leftClick')
			},
			rightClick(){
				this.$emit('rightClick')
			},
		}
	}
</script>

<style scoped>
	.footer{
		width:100%;
		height:120rpx;
		background:#f1f1f1;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		justify-content: space-around;
		align-items: center;
		z-index: 999;
	}
	.btn{
		flex: 0 0 40%;
		border-radius: 50rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		padding:20rpx 0;
	}
	.btn:nth-child(1){
		border:1px solid #EA5034;
		color:#EA5034;
	}
	.btn:nth-child(2){
		background-color: #EA5034;
		color:#fff;
		
	}
</style>